Bookmark
Getopt::Long::Complete - A drop-in replacement for Getopt::Long, with tab completion - metacpan.org
https://metacpan.org/pod/Getopt::Long::Complete, posted 2014 by peter in development free perl shell software usability
You just replace use Getopt::Long with use Getopt::Long::Complete and your program suddenly supports tab completion. This works for most/many programs.